package com.example.demothree.dao;

import com.example.demothree.bean.Employee;
import com.example.demothree.bean.PurchaseOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface EmployeeDao extends JpaRepository<Employee,Long> {
    @Query("from Employee where name = ?1")
    public Employee findEmployeeByName(String name);
    @Query("from Employee where id=?1")
    public Employee findBy(Long id);
}
